-- GENERATED SPELL FOR [Living Grove Defender] --


function spell0_21072(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(12747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21072', 11500, 1)
end

function Sorts_21072(pUnit, Event)
local choix_sorts_21072 = math.random(0, 0)
if choix_sorts_21072 == 0 then
pUnit:RegisterEvent('spell0_21072', 1, 1)
end
end

function mob21072_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21072', math.random(1500, 3000), 1)
end

function mob21072_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21072_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21072_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21072, 1, 'mob21072_Action')
RegisterUnitEvent(21072, 2, 'mob21072_Leave')
RegisterUnitEvent(21072, 3, 'mob21072_Kill')
RegisterUnitEvent(21072, 4, 'mob21072_Die')
